package com.itheima.utils;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")//读取配置文件中的属性，完成批量注入值
public class AliyunOSSProperties {
    private String endpoint;
    private String bucketName;
    private String region;
}